<?php

# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
#
#	FILE:			includes/custom/admincreatenewsletters.php
#	FUNCTION:		Is the custom handler for the Admin Create Newsletters page
#	AUTHOR:			Cameron Morrow
#	CREATED:		02/09/2005
#
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -


# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# D A T A
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

# Table
$current_table = $PROJECT_DB_TABLES["newsletters"];

# Field to sort browse on
$browse_sort_field = "n_created";

# Field to group browse on
$browse_group_field = "";

# Is index numeric
$index_numeric = true;

# Index field
$index_field = "n_id";

# Type name
$type_name = "Newsletter";

# Plural
$type_name_plural = "Newsletters";

# Custom Columns
$custom_columns = array();

# Add "Send" link
$custom_columns[] = array("Send", "\"<a href=\\\"../admin/adminsendnewsletters.php?nl=[n_id]\\\">Send</a>\""); 

# Add Edit column
$custom_columns[] = array("Content", "\"<a href=\\\"javascript:editPageContent('[n_id]', 'newsletter');\\\">Content</a>\"");

# Actions
$custom_columns[] = generateAddEditColumn($index_field);

# Browse SQL
$browse_sql_additional_where_clauses = array();
$browse_sql_search_fields = array("n_name");

# Edit SQL
$edit_sql_additional_selects = array();
$edit_sql_additional_tables = array();
$edit_sql_additional_where_clauses = array();

# Handler
include("../includes/custom/adminhandler.php");

?>